package net.maku.events.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import net.maku.framework.common.utils.DateUtils;
import net.maku.member.entity.MemberUserEntity;

import java.util.Date;

/**
* 用户评论
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2025-04-09
*/
@Data
@Schema(description = "用户评论")
public class UserCommentVO implements Serializable, TransPojo {
	private static final long serialVersionUID = 1L;

	@Schema(description = "id")
	private Long id;

	@Schema(description = "用户id")
	@Trans(type = TransType.SIMPLE, target = MemberUserEntity.class, fields = "realName", ref = "userName")
	private Long userId;

	@Schema(description = "用户id")
	private String userName;

	@Schema(description = "活动id")
	private Long businessId;

	@Schema(description = "活动类型")
	private Integer businessType;

	@Schema(description = "点赞量")
	private Integer likes;

	@Schema(description = "评论内容")
	private String commentContents;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;


}